package org.example.log4j;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;

public class T1 {

    private static final Logger logger = LoggerFactory.getLogger(T1.class);
    private static final Log log = LogFactory.get(T1.class);

    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer();
        for (int k = 0; k < 1; k++) {
            sb.append("hadoop");
        }
        String line = sb.toString();

        int cnt = 10;
        for (int i = 0; i < cnt; i++) {
            logger.info("slf4j line = {} , i={} ", line, i);
            log.info("hutool line = {} , i={} ", line, i);
        }

    }

}
